<template>
  <!-- 头部 -->
  <div class="header">
<!--    <div class="header_top">-->
<!--      <div class="left_title">水利部人事管理平台</div>-->
<!--      <div class="header_right">-->
<!--        <div class="user_info">-->
<!--          <el-avatar-->
<!--            :size="70"-->
<!--            :src="circleUrl"-->
<!--            style="margin: 0 16px"-->
<!--          ></el-avatar-->
<!--          >欢迎你！刘主任-->
<!--        </div>-->
<!--        <div class="user_tools">-->
<!--          <span class="header_right_icon"-->
<!--            ><i class="el-icon-lock"></i><span>密码</span></span-->
<!--          >-->
<!--          <span class="header_right_icon"-->
<!--            ><i class="el-icon-bell"></i><span>提醒</span></span-->
<!--          >-->
<!--          <span class="header_right_icon"-->
<!--            ><i class="el-icon-setting"></i><span>设置</span></span-->
<!--          >-->
<!--          <span class="header_right_icon"-->
<!--            ><i class="el-icon-switch-button"></i><span>退出</span></span-->
<!--          >-->
<!--        </div>-->
<!--      </div>-->
<!--    </div>-->
    <!-- 头部菜单 -->
    <ul class="header_menu">
      <li
        :class="{ active: item.isActive }"
        v-for="(item, index) in topNavs"
        :key="index"
      >
        <a :href="item.url">{{ item.title }}</a>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
      // 顶部导航
      topNavs: [
        { title: '人事管理系统', url: 'http://212.64.12.179:8092/', isActive: true },
        { title: '人事统计报表', url: 'http://212.64.12.179:8094/' },
 
      ],
      activepath: '',
      circleUrl:
        'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  //flex: 170px 0 0;
  background-color: #00a8ff;
  display: flex;
  flex-direction: column;
  .header_top {
    flex: 130px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left_title {
      font-size: 30px;
      font-weight: 700;
      color: #fff;
      margin-left: 100px;
    }
    .header_right {
      color: #fff;
      margin-right: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 500px;
      height: 100px;
      .user_info {
        display: flex;
        align-items: center;
      }
      .user_tools {
        display: flex;
        .header_right_icon {
          cursor: pointer;
          margin-left: 20px;
          text-align: center;
          i {
            font-size: 20px;
            font-weight: bold;
          }
          span {
            display: flex;
          }
        }
      }
    }
  }
  .header_menu {
    padding-left: 100px;
    display: flex;
    flex: 1;
    font-weight: bold;
    background-color: #0063c7;
    margin-bottom: 0 !important;
    li {
      padding: 0 20px;
      line-height: 40px;
      height: 40px;
      &:hover {
        background-color: #5ab5ff;
      }
      &.active {
        background-color: #5ab5ff;
      }
      a {
        font-size: 14px;
        text-decoration: none;
        color: #fff;
      }
    }
  }
}
</style>
